<?php

namespace App\Common\Cla;

use App\Common as com;

class Web extends com\Cla\ClaBase {

	// ===============================
	//
	//
	// 下面为静态方法
	//
	//
	// ===============================

	/**
	 * 获取 web.webSaltKey 参数
	 * @return string
	 * @throws
	 */
	public static function getWebSaltKey(  ):string {
		return com\Lib\Hyperf::configOrFail( 'web.webSaltKey', true );
	}

	/**
	 * 获取 web.userPasswordSaltKey 参数
	 * @return string
	 * @throws
	 */
	public static function getUserPasswordSaltKey(  ):string {
		return com\Lib\Hyperf::configOrFail( 'web.userPasswordSaltKey' );
	}

	/**
	 * 获取 web.hashidsSaltKey 参数
	 * @return string
	 * @throws
	 */
	public static function getHashidsSaltKey(  ):string {
		return com\Lib\Hyperf::configOrFail( 'web.hashidsSaltKey' );
	}
}
